package com.gxks.lhs.DTO;

import com.gxks.lhs.entity.AddressBook;
import com.gxks.lhs.entity.Goods;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class OrderDetailDTO implements Serializable {

    /**
     * 店铺ID
     **/
    @Schema(description = "卖方id", required = true)
    private String sellerId;

    /**
     * 店铺名称
     **/
    @Schema(description = "卖家昵称", required = true)
    private String sellerName;

    @Schema(description = "商品总值", required = true)
    private BigDecimal total;

    @Schema(description = "商品总数", required = true)
    private Integer totalNum;

    @Schema(description = "地址", required = true)
    private AddressBook userAddr;

    @Schema(description = "二手手机信息", required = true)
    private Goods goods;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "订单创建时间", required = true)
    private String createTime;

    /**
     * 支付时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "订单支付时间", required = true)
    private String payTime;

    @Schema(description = "支付方式")
    private String payName;


    /**
     * 订单状态
     */
    @Schema(description = "订单状态", required = true)
    private Integer status;
}
